<template>
    <div>
        <h4>兄  <button @click="emitter.emit('send-toy',computer)">拿来吧你</button></h4>
        <h4>玩具:{{computer}}</h4>
    </div>
</template>

<script setup lang="ts">
import emitter from '@/utils/mitter'

import { ref } from 'vue';

let computer = ref('电脑')
</script>

<style scoped>

</style>